<%@page contentType="text/html; charset=utf-8"%>
<html>
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
   <body>
   	<input type="button" value="click me" id = "btn1">
   	<input type="button" value="triggle click me" id="btn2">
   	<input type="button" value = "detach handler"/>
   	<input type="button" value="show/hide text"/>
   </body>
    <script type="text/javascript">
   	$("#btn1").click(function(){
   		alert("click me");
   	});
   	$("#btn2").click(function(){
   		alert("triggle click me");
   	});
   	$("input[type='button']").eq(2).click(function(){
   		alert("detach handler");
   	});
     </script>
</html>